package com.xique.door.event;

import com.xique.door.bean.domain.User;
import org.springframework.context.ApplicationEvent;

import java.util.List;

/**
 * @author shd
 * @create 2021/7/3 10:13
 */
public class AddDeviceBatchCommandEvent extends ApplicationEvent {

    private static final long serialVersionUID = 6781269976238528464L;

    private List<String> devSns;

    private List<User> users;

    public AddDeviceBatchCommandEvent(Object source) {
        super(source);
    }

    public AddDeviceBatchCommandEvent(List<String> devSns, List<User> users) {
        super(devSns);
        this.devSns = devSns;
        this.users = users;
    }

    public AddDeviceBatchCommandEvent(Object source, List<String> devSns, List<User> users) {
        super(source);
        this.devSns = devSns;
        this.users = users;
    }

    public List<String> getDevSns() {
        return devSns;
    }

    public void setDevSns(List<String> devSns) {
        this.devSns = devSns;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    @Override
    public Object getSource() {
        return super.getSource();
    }
}
